#import "Fraction.h"

int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    Fraction *aFraction = [[Fraction alloc] init];
    Fraction *bFraction = [[Fraction alloc] init];

    // Ustawienie dwch uamkw na wartoci 1/4 i 1/2 oraz zsumowanie ich

     [aFraction setTo: 1 over: 4];
     [bFraction setTo: 1 over: 2];

    // Drukowanie wyniku

    [aFraction print];
    NSLog (@"+");
    [bFraction print];
    NSLog (@"=");

    [aFraction add: bFraction];
    [aFraction print];
    [aFraction release];
    [bFraction release];

     pool drain];
    return 0;
}